package com.wx.mythread.thread;

/**
 * 继承Thread类，实现创建线程
 */
public class MyThread extends Thread {

    @Override
    public void run() {

        System.out.println(Thread.currentThread().getName()+"hello");
    }

    public static void main(String[] args) {
        MyThread myThread = new MyThread();
        myThread.start();
        System.out.println(Thread.currentThread().getName()+"hello");
    }
}
